package com.huilian.iotbox.data.enums;

import lombok.Getter;

/**
 * 支付盒子
 *
 * @author chenqiwen
 * @CreateDate: 2021-05-05-19-03
 * @Description:
 */
@Getter
public enum IOTBoxTCPEnum {
    RESET_THE_TERMINAL(2, "02", "复位终端"),
    QUERYING_TERMINAL_PARAMETERS(5, "05", "查询终端参数"),
    SET_TERMINAL_PARAMETERS(6, "06", "修改终端参数"),
    FACTORY_DATA_RESET(11, "0B", "恢复出厂设置"),
    LOCAL_ACCOUNTS_ARE_CLEARED(12, "0C", "本地账目清零"),
    TERMINAL_ACTIVELY_UPLOADS_THE_ACCOUNT_INCREMENT(19, "13", "终端主动上传账目增量"),
    UPLOAD_ACCOUNT_INCREMENT_BY_DUIBIJI(20, "14", "终端主动上传账目增量（兑币机）"),
    DUIBI_SET_PARAM(21, "15", "设置终端参数（兑币机）"),

    FAULT_PARAMETERS_BATTERY_CAR_CHARGING_PILE(10, "0A", "上传设备故障（电瓶车共享充电桩）"),
    SET_TERMINAL_PARAMETERS_BATTERY_CAR_CHARGING_PILE(24, "18", "设置基础参数（电瓶车共享充电桩）"),
    QUERYING_TERMINAL_PARAMETERS_BATTERY_CAR_CHARGING_PILE(30, "1E", "设置基础参数（电瓶车共享充电桩）"),

    HAO_JI_LE_FAULT_REPORTING(4, "04", "上传设备故障（好集乐儿童车）"),
    HAO_JI_LE_QUERY_PARAM(5, "05", "查询基础参数（好集乐儿童车）"),
    HAO_JI_LE_SET_PARAM(32, "20", "设置基础参数（好集乐儿童车）"),
    ;

    // 功能码，10进制
    private Integer decimal;
    // 功能码，16进制
    private String hexadecimal;
    private String desc;

    IOTBoxTCPEnum(Integer decimal, String hexadecimal, String desc) {
        this.decimal = decimal;
        this.hexadecimal = hexadecimal;
        this.desc = desc;
    }
}
